package com.prime.tutorial.moviestore.dao;

import com.prime.tutorial.moviestore.domain.Groups;
import com.prime.tutorial.moviestore.domain.Users;

import java.util.List;

public interface UserDAO extends GenericDAO<Users, Long> {

    public List<Users> findByLastName(String lastname);

    public List<Users> findByLogin(String login);

    public List<Users> findEnabled();

    public List<Users> findByGroup(Groups group);

//    public Boolean checkIfUserCouldAddNewUsers(Users user);

     public List<Users> findOnlineUsers();
}